package com.automannn.atm_back.modules.codeGenerator.service;


import com.automannn.atm_back.modules.codeGenerator.core.pojo.ColumnInfo;
import com.automannn.atm_back.modules.codeGenerator.core.pojo.TableInfo;
import com.automannn.atm_back.modules.codeGenerator.entity.ColumnEntity;
import com.automannn.atm_back.modules.codeGenerator.entity.TableEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author chenkh
 * @time 2020/6/28 19:37
 */
public interface SchemaEntityService {
    /**
     * 查询所有的表
     * @param namespace
     * @return
     */
    IPage<TableEntity> queryAllTables(IPage page,String namespace);

    /**
     * 查询所有的表结构
     * @param table
     * @return
     */
    List<ColumnEntity> queryAllColumn(String table);

    /**
     * 查询所有的表
     * @param namespace
     * @return
     */
    List<TableInfo> queryAllTableInfo(String namespace);

    /**
     * 查询所有的表结构
     * @param table
     * @return
     */
    List<ColumnInfo> queryAllColumnInfo(String table);
}
